import request from "../util/request";
import {TypeMenuListAPI,TypeAddMenuAPI,TypeEditMenuAPI} from '../type/api'
//获取菜单列表
export function getMenuListAPI(params?:object) {
return request.get<TypeMenuListAPI[]>("/menu/list",params||{});
}

//添加菜单
export function addMenuListAPI(params:TypeAddMenuAPI) {
return request.post("menu/create",params);

}
//编辑菜单
export function editMenuListAPI(params:TypeEditMenuAPI) {
return request.post("/menu/edit",params);
} 
//删除菜单
export function deleteMenuListAPI(params:object) {   
return request.post("/menu/delete",params);   

}
